import { applyDecorators, UseGuards } from '@nestjs/common'
import { ApiBearerAuth } from '@nestjs/swagger'
import { JwtAuthGuard, RestfulGuard } from '../guards'

export const ApiAuth = () =>
  applyDecorators(ApiBearerAuth(), UseGuards(JwtAuthGuard, RestfulGuard))
